package com.taofuxn.yycreazy.ui.activity;

import android.content.pm.PackageManager;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.TextView;

import com.taofuxn.yycreazy.R;
import com.taofuxn.yycreazy.ui.base.BaseActivity;

import butterknife.InjectView;

/**
 * 关于我们
 * Created by wanghuafu on 16/9/15.
 */
public class AboutUsActivity extends BaseActivity{

@InjectView(R.id.toolbar)
Toolbar toolbar;

    @InjectView(R.id.curVersion)
    TextView curVersion;

    @Override
    protected int setContentLayout() {
        return R.layout.activity_about_us;
    }

    @Override
    protected void init() {
        toolbar.setNavigationIcon(R.mipmap.ic_launcher);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        curVersion.setText(getVersionName());
    }

    private String getVersionName() {

        return "当前版本：1.0.10 " +
                "";
    }
}
